from PIL import Image

img = Image.open("app.png")
img.save("app.ico", sizes=[(256, 256)])
